﻿var UserControl;

UserControl = (function() {

  function UserControl(attrs) {
    this.attrs = attrs;
    this.layer = attrs.layer;
    this.x = attrs.x;
    this.y = attrs.y;
    this.width = attrs.width;
    this.height = attrs.height;
    this.text = attrs.text;
    this.me = this;
    this.group = new Kinetic.Group({
      draggable: attrs.draggable
    });
    this.layer.add(this.group);
    this.selected = false;
  }

  UserControl.prototype.setSelected = function(selected) {
    this.selected = selected;
  };

  UserControl.prototype.dispose = function() {
    return this.layer.remove(this.group);
  };

  UserControl.prototype.typeName = 'UserControlEx';

  return UserControl;

})();
